package com.ex.ui.questionpanel;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;

import com.ex.ui.infoframe.PersonInfoIFrame;

import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;
@SuppressWarnings("serial")
public class HeartAreaPanel extends JPanel {
	 private PersonInfoIFrame mScoreFrame;
	 private JButton mCommitBtn;
	 private JTextField mEdit1;
	 private JTextField mEdit2;
	 /**
	 * Create the panel.
	 */
	public HeartAreaPanel(PersonInfoIFrame f) {
		mScoreFrame = f;
		setToolTipText("三角形的面积计算");
		this.setBounds(100, 100, 410, 273);
		setLayout(null);
		
		JLabel label = new JLabel("心型面积");
		label.setBounds(72, 61, 72, 18);
		add(label);
		
		mEdit1 = new JTextField();
		mEdit1.setBounds(63, 104, 86, 24);
		add(mEdit1);
		mEdit1.setColumns(10);
		mEdit1.setName("mEdit1");
		
		mEdit2 = new JTextField();
		mEdit2.setBounds(194, 107, 86, 24);
		add(mEdit2);
		mEdit2.setColumns(10);
		mEdit2.setName("mEdit2");
		
		mCommitBtn = new JButton("New button");
		mCommitBtn.setBounds(85, 179, 113, 27);
		add(mCommitBtn);
		mCommitBtn.setName("mCommitBtn");

	}
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					HeartAreaPanel p = new HeartAreaPanel(null);
					JFrame window = new JFrame();
					 window.setContentPane(p);					 
					 window.setSize( p.getWidth(), p.getHeight());
					 window.setLocationRelativeTo(null);
					window.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	} 
}
